package cn.sicnu.cs.employment.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
@Builder
@With
@NoArgsConstructor
@AllArgsConstructor
@ToString
@TableName("t_emp_exp_project")
public class EmployeeExpProject {

    @TableId(type = IdType.AUTO)
    private Long id;

    private Long comId;

    private Integer isAppeal;

    @NotNull(message = "员工id不能为null")
    private Long empId;

    private String project; //项目名称

    private String description;

    private String time;

    private String content;

    private String position;

    private String evaluate;

    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    private String self;

}